---
apiVersion: v1
kind: Secret
metadata:
  name: hubble-relay-client-certs
  namespace: d8-cni-cilium
  {{- include "helm_lib_module_labels" (list . (dict "app" "hubble-relay")) | nindent 2 }}
type: kubernetes.io/tls
data:
  ca.crt:  {{ $.Values.ciliumHubble.internal.relay.clientCerts.ca | b64enc }}
  tls.crt: {{ $.Values.ciliumHubble.internal.relay.clientCerts.cert | b64enc }}
  tls.key: {{ $.Values.ciliumHubble.internal.relay.clientCerts.key  | b64enc }}
---
apiVersion: v1
kind: Secret
metadata:
  name: hubble-relay-server-certs
  namespace: d8-cni-cilium
  {{- include "helm_lib_module_labels" (list . (dict "app" "hubble-relay")) | nindent 2 }}
type: kubernetes.io/tls
data:
  ca.crt:  {{ $.Values.ciliumHubble.internal.relay.serverCerts.ca | b64enc }}
  tls.crt: {{ $.Values.ciliumHubble.internal.relay.serverCerts.cert | b64enc }}
  tls.key: {{ $.Values.ciliumHubble.internal.relay.serverCerts.key  | b64enc }}
